package com.zc.gateway.infra.service;

import com.zc.commons.auth.dto.LoginUserDetails;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 租户用户查询
 */
@Service
public class LoginUserDetailsService {

    private static final String NAME_SPACE = "com.zc.gateway.infra.service.LoginUserDetailsService.";

    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;

    public LoginUserDetails queryUserDetailsByAccount(String account) {
        return this.sqlSessionTemplate.selectOne(NAME_SPACE + "queryUserDetailsByAccount", account);
    }


}
